//jshint strict: false
module.exports = function(config) {
  config.set({

    basePath: './app',

    files: [
      'bower_components/jquery/jquery.js',
      'bower_components/angular/angular.js',
      'bower_components/angular-route/angular-route.js',
      'bower_components/angular-mocks/angular-mocks.js',
      'bower_components/angular-animate/angular-animate.js',
      'bower_components/angular-aria/angular-aria.js',
      'bower_components/angular-material/angular-material.js',
      'bower_components/angular-bootstrap/ui-bootstrap.js',
      'bower_components/angular-bootstrap/ui-bootstrap-tpl.js',
      'bower_components/ng-file-upload/ng-file-upload.js',
      'bower_components/angular-sanitize/angular-sanitize.js',
      // 'components/**/*.js',
      // 'view*/**/*.js',
      'app.js',
      '*Module/*.module.js',
      '*Module/**/*.js',
      // 'controllers/*.js',
      // 'services/*.js',
      // 'filters/*.js',
      // 'directives/*.js',
      '*Module/views/*.html'


    ],

    autoWatch: true,

    frameworks: ['jasmine'],

    browsers: ['Chrome'],

    plugins: [
      'karma-chrome-launcher',
      'karma-firefox-launcher',
      'karma-jasmine',
      'karma-junit-reporter',
      'karma-ng-html2js-preprocessor'
    ],

    junitReporter: {
      outputFile: 'test_out/unit.xml',
      suite: 'unit'
    },

    preprocessors: {
      '*Module/views/*.html': ['ng-html2js']
    },

    ngHtml2JsPreprocessor: {
      // stripPrefix: 'views/',
      moduleName: 'templates'
    }

  });
};
